﻿using System;
using System.Windows.Forms;
using IGM.Presentation.IgmServiceReference;

namespace IGM.Presentation.Materials
{
    public partial class LeturersControl : UserControl
    {
        private DomainServiceClient _serviceClient;

        public LeturersControl()
        {
            InitializeComponent();
            _serviceClient = new DomainServiceClient();
        }

        private void LeturersControl_Load(object sender, System.EventArgs e)
        {
            LoadLectureList();
        }

        private void LoadLectureList()
        {
            dgvLecturerList.DataSource = _serviceClient.GetLecturers();
        }
    }
}
